<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<div class="wrap">
	<div class="nav">
		<ul class="cc">
			<li class="current"><a href="#">充值记录</a></li>
			<li><a href="<yjd:url url="/online/statis"/>">充值统计</a></li>
		</ul>
	</div>
	<div class="h_a">搜索</div>
	<form autocomplete="off" method="get"
		action="<yjd:url url="/online/list"/>">
		<div class="search_type cc">
			<label>会员：</label>
			<input type="text" placeholder="用户名/姓名/手机/邮箱/身份证" value="${paramMap.keys }" class="input length_3 mr10" name="keys"> 
			<label>订单号：</label>
			<input type="text" value="${paramMap.order_id }" class="input length_1 mr10" name="order_id">
			<label>开始日期：</label>
			<input type="text" class="input length_1 mr10 J_date date" name="start" value="${paramMap.start }"> 
			<label>截止日期：</label>
			<input type="text" class="input length_1 mr10 J_date date" name="end" value="${paramMap.end }">

		</div>
		<div class="search_type cc  mb10">
			<label>平台：</label> 
			<select class="mr10" name="from">
				<option value="">全部</option>
				<option value="1" <c:if test="${paramMap.from==1 }">selected="selected"</c:if> >国付宝</option>
				<option value="2" <c:if test="${paramMap.from==2 }">selected="selected"</c:if> >宝付</option>
			</select> <label>银行：</label> 
			<select class="length_2 mr10" name="bank">
				<option value="">全部</option>
				<c:forEach items="${banks }" var="bank">
					<option value="${bank.id_bank }" <c:if test="${paramMap.bank == bank.id_bank }">selected="selected"</c:if> >${bank.bank_name }</option>
				</c:forEach>
			</select>
			<label>交易状态：</label>
			<select class="mr10" name="status">
				<option value="">全部</option>
				<option value="0" <c:if test="${paramMap.status=='0' }">selected="selected"</c:if> >待充值</option>
				<option value="1" <c:if test="${paramMap.status==1 }">selected="selected"</c:if> >成功</option>
				<option value="2" <c:if test="${paramMap.status==2 }">selected="selected"</c:if> >失败</option>
			</select>
			<button class="btn btn_submit length_1" type="submit">搜索</button>
		</div>
	</form>
	<div class="mb10">
		<a id="J_ajax_del" data-msg="确定删除？" class="btn btn_orange J_ajax_del"
			href="<yjd:url url="/online/clean"/>">清除7天之前未成功交易的订单</a>
	</div>
	<div class="table_list">
		<c:set var="hashData"
			value="${pager.pagerModel.dataList!=null && fn:length(pager.pagerModel.dataList)>0 }" />
		<table width="100%">
			<thead>
				<tr>
					<td>订单号</td>
					<td>支付平台</td>
					<td>交易号</td>
					<td>会员账户</td>
					<td>银行</td>
					<td>金额</td>
					<td>状态</td>
					<td>提交日期</td>
					<td>成功日期</td>
				</tr>
			</thead>
			<c:if test="${hashData }">
				<tbody id="J_word_list">
					<c:forEach items="${pager.pagerModel.dataList }" var="item">
						<tr>
							<td>${item.order_id }</td>
							<td>${item.channelName }</td>
							<td>${item.trace_id }</td>
							<td>${item.username }</td>
							<td>${item.bankName }</td>
							<td>${item.price }</td>
							<td>${item.statusText }</td>
							<td>${item.addDate }</td>
							<td>${item.upDate }</td>
						</tr>
					</c:forEach>
				</tbody>
			</c:if>
		</table>
	</div>
	<%@ include file="../../public/pager/pager.pagination.jsp"%>
</div>